<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人中心-<?php echo $cfg_webname;?></title>
<link href="<?php echo $cfg_basehost;?>/css/v2_index.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $cfg_basehost;?>/js/uaredirect.js" type="text/javascript"></script>
<script type="text/javascript">uaredirect("<?php echo $mcfg_basehost ?>/user/");</script>
<script type="text/javascript" src="<?php echo $cfg_basehost;?>/js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $cfg_basehost;?>/system/gzs.ajax.js"></script>
<script type="text/javascript">
function CheckLogintop(){
var taget_obj = document.getElementById('_userlogin');
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("/user/ajax_loginsta.php");
DedeXHTTP = null;
}
</script>
<style type="text/css">
.user-right-box{background:#fff;border-radius:5px;}
.content_list{width:900px;}
.content_list .content_item{width:212px;margin-right:13px;}
.content_item .main_title{font-size:15px;}
.content_item img{width:212px;height:120px;}

/*用户信息*/
.cash-info{padding:53px 30px 15px;overflow:hidden;}
.cash-info .info-pic{width:70px;height:70px;display:inline-block;vertical-align:middle;border-radius:50%;margin-right:15px;}
.cash-info .info-user-wrap{display:inline-block;vertical-align:middle;}
.cash-info .user-info{height:20px;line-height:20px;}
.cash-info .user-name{float:left;font-size:16px;color:#333;height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:6px;}
.cash-info .user-info img{float:left;width:20px;height:20px;vertical-align:top;}
.cash-info .user-tips{height:18px;line-height:18px;font-size:14px;color:#666;margin-top:6px;}
.cash-info .user-tips a:hover{text-decoration:underline;}
</style>
</head>
<body>

<?php include(DEDEMEMBER."/templets/head.htm");?>
<?php include(DEDEMEMBER."/templets/left.htm");?>

<!-- 右侧功能定位 -->
<div class="user-right">
<div class="user-right-box">


<!-- 用户信息 -->
<div class="cash-info">
<img class="info-pic" src="<?php echo $cfg_ml->fields['face'];?>">
<div class="info-user-wrap">
<div class="user-info">
<span class="user-name"><a href="/user/edit_user.php" class="nichen" title="修改昵称"><?php echo $cfg_ml->M_UserName;?></a></span>
<?php if ($cfg_ml->M_Rank > 10){echo '<img src="/images/person-vip2.png">';} else{echo '<img src="/images/person-vip1.png">';}?>
</div>
<div class="user-tips"><?php if ($cfg_ml->M_Rank > 10){echo '您已是<span style="color:#044ef5">SVIP</span>会员，全站课程免费学习';} else{echo '<a href="/user/buyhui.php" style="color:#ff700a;">开通SVIP会员</a>，全站课程免费学习';}?></div>
</div>
</div>
<!-- 用户信息 End -->


<!-- 新课上线 -->
<div class="outwrap-course-new" style="padding:0 30px 0px;">
<div class="recomend"><?php $row = $dsql->GetOne("SELECT * FROM `biz_arctype` WHERE id=15"); echo "".$row['typename'].""; ?> </div>
<ul class="content_list clearfix">
<?php
$time = time();
$timestamp = strtotime($cfg_dqtime);
$sql = "select * from #@__arctype where reid = '18' order by id desc limit 8";
$dsql->Execute('me',$sql);
while($arr = $dsql->GetArray('me'))
{
$oprice = $arr['price'];
if(!empty($oprice))
{
if($cfg_dazhe == 'Y' && $timestamp > $time)
{
$dzprice = $oprice / 100 * $cfg_zhekou;
$pricehtml = "<span class=\"price\"><i>￥</i>{$dzprice} <small>￥{$oprice}</small></span>";
}
else
{
$pricehtml = "<span class=\"price\"><i>￥</i>{$oprice}</span>";}
}
else
{
$pricehtml = "<span class=\"ke-mianfei\">免费</span>";}
echo '<li class="content_item">
<a href="'.GetTypeDeurl($arr['id']).'" class="link" title="'.$arr['typename'].'" target="_blank">
<img class="course-img-bg lazy-img" data-original="'.mstrone($arr['bigpic']).'">
<div class="main_title">'.$arr['typename'].'</div>
<div class="sub_title">
'.$pricehtml.'
<span class="item_right fr">'.JJgetCliak($arr['id']).'次学习</span>
</div>
</a>
</li>';}
?> 
</ul>
</div>
<!-- 新课上线 End -->


<!-- 为你推荐 -->
<div class="outwrap-course-new" style="padding:0 30px 50px;">
<div class="recomend">为你推荐</div>
<ul class="content_list clearfix">
<?php
$time = time();
$timestamp = strtotime($cfg_dqtime);
$sql = "select * from #@__arctype where reid = '18' and  isrecommend = '0' order by id desc limit 16";
$dsql->Execute('me',$sql);
while($arr = $dsql->GetArray('me'))
{
$oprice = $arr['price'];
if(!empty($oprice))
{
if($cfg_dazhe == 'Y' && $timestamp > $time)
{
$dzprice = $oprice / 100 * $cfg_zhekou;
$pricehtml = "<span class=\"price\"><i>￥</i>{$dzprice} <small>￥{$oprice}</small></span>";
}
else
{
$pricehtml = "<span class=\"price\"><i>￥</i>{$oprice}</span>";}
}
else
{
$pricehtml = "<span class=\"ke-mianfei\">免费</span>";}
echo '<li class="content_item">
<a href="'.GetTypeDeurl($arr['id']).'" class="link" title="'.$arr['typename'].'" target="_blank">
<img class="course-img-bg lazy-img" data-original="'.mstrone($arr['bigpic']).'">
<div class="main_title">'.$arr['typename'].'</div>
<div class="sub_title">
'.$pricehtml.'
<span class="item_right fr">'.JJgetCliak($arr['id']).'次学习</span>
</div>
</a>
</li>';}
?>
</ul>
</div>
<!-- 为您推荐 End -->



</div>
</div>
<!-- 右侧功能定位 End -->

</div>
</div>

<?php include(DEDEMEMBER."/templets/footer.htm");?>

<script type="text/javascript" src="<?php echo $cfg_basehost?>/js/jquery.lazyload.js"></script>
<script type="text/javascript">
!function(){var n,f={};f.curr=1,n=20;var a=function(){},c=function(){$(".lazy-img").lazyload({effect:"fadeIn"})},i=function(){a(),c()};i()}();
</script>

</body>
</html>